<extend name="Public:base" />
<block name="main">
	<script type="text/javascript" src="__PUBLIC__/artDialog/artDialog.source.js?skin=default"></script>
	<script type="text/javascript" src="__PUBLIC__/artDialog/iframeTools.js"></script> 
	<!-- Validform_v5.3.2验证框架 -->
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Validform/css/Validform_v5.3.2.css"/>
	<script type="text/javascript" src="__PUBLIC__/Validform/js/Validform_v5.3.2.js"></script>
	<script type="text/javascript">
		$(function() {
			var myform=$("#myForm").Validform({
				tiptype:3,
				label:".label",
				showAllError:true,
				postonce:true,//开启二次提交防御
				ajaxPost:false,
				beforeSubmit:function(curform) {
					//在验证成功后，表单提交前执行的函数，curform参数是当前表单对象。
					lockScreen();
				},
				callback:function(data){
					$.Hidemsg();
				}
			});
			//多选题项内互斥
			{$mutual_string}
			//隐藏所有逻辑设置项
			{$hide_string}
			//题目逻辑
			$(".selectItem").change( 
				function() { 
					{$verify_string}
				}
			);
			//特殊处理
			
		});
	</script>
	<style>
		body {
		background-color:  rgba(129,189,243,0.7) !important;
		}
		label {
			display: inline-block;
			max-width: 100%;
			margin-bottom: 5px;
			font-weight: normal;
			padding-left: 7px;
			cursor: pointer;
		}
	</style>
	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-default mt-10">
				<div class="panel-body">
					<div class="row">
						<div class="col-md-12">
							<div class="col-xs-12 col-md-12 module-title text-center" >
								<h1>{$question_info.title}</h1>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-md-12">
							<div class="col-xs-12 col-md-12" style="text-align:right;">
								<span>
									当前用户：{$Think.cookie.user_real_name}&nbsp;&nbsp;
									<a href="__APP__?g=Index&m=Index&a=logout">退出</a>
								</span>
							</div>
						</div>
					</div>
					<notempty name="question_info.intro">
						<div class="manageMenu">
							<p class="" style="font-size:16px;"><b>被测评教师：{$bcjs_xx.real_name}&nbsp;&nbsp;&nbsp;性别：{$bcjs_xx.gender}&nbsp;&nbsp;&nbsp;学院：{$bcjs_xx.college}&nbsp;&nbsp;&nbsp;职称：{$bcjs_xx.profession}</b></p>
						</div>
					</notempty>
					<form name="myForm" id="myForm" action="__APP__?g=Index&m=Form&a=itemValue&id={$Think.request.formid}&ops={$ops}&page={$Think.request.page}" method="post" enctype="multipart/form-data">
						<!-- 显示已添加测验题开始-->
						<input type="hidden" name="formid" value="{$Think.request.formid}" />
						<div class="block_{$Think.request.fromid} mt-20">
							<volist name="test_data.item_list" id="vo" key="k">
								<eq name="vo.item_type" value="select">
									<!-- 选择题 -->
									<include file="select_view" />
								</eq>
								<eq name="vo.item_type" value="affix">
									<!-- 附件题 -->
									<include file="affix_view" />
								</eq>
								<eq name="vo.item_type" value="blank">
									<!-- 填空题 -->
									<include file="blank_view" />
								</eq>
							</volist>
						</div>
						<div class="clear"></div>
						<div class="tc mt-10">
							<input type="submit" class="btn btn-success btn-outlined active" value="{$tips}" />
						</div>
					</form>
					<!-- 显示已添加测验题结束-->
					<div class="clear"></div>
				</div>
			</div>
		</div>
	</div>
	<style>	
		#kefu{ width:180px; height:auto; position:fixed; top:50%; right:5px;z-index:8888; background:#fff; border:1px solid #d1d1d1;border-top:2px solid #ca2d25; display:none; margin-top:-140px;}
		#kefu .top{ width:100%; height:35px; line-height:35px;font-family:"Microsoft YaHei"; font-size:14px; color:#333; font-weight:bold; text-align:center;}
		#kefu .middle{ font-size:12px; width:100%; text-align:center;}
		#kefu .middle p{ color:#991C0A;}
		#kefu .middle a{ color:#333333;}
		#kefu .close{float:right; margin-right:10px; margin-top:10px; cursor:pointer;}
		.right_bar{ width:28px; height:95px; position:fixed; top:60%; right:0; margin-top:-242px; z-index:9999;}
		.right_bar img{cursor:pointer;}
	</style>
	<div id="kefu">
		<div class="top">
			QQ在线咨询<img src="../Public/img/close.gif" class="close" />
		</div>
		<div class="middle">
			<eq name="Think.cookie.user_type" value="a">
				<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2877907559&site=qq&menu=yes">
					<div style="height:20px; line-height:20px; float:left; padding-left:10px;">
						<img src="../Public/img/qq.gif" alt="学生问卷QQ咨询专线" title="学生问卷QQ咨询专线" />
					</div>
					<div style="height:20px; line-height:20px; float:left; padding-top:3px;">学生问卷QQ咨询专线</div>
				</a>
			</eq>
			<eq name="Think.cookie.user_type" value="b">
				<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2877907559&site=qq&menu=yes">
					<div style="height:20px; line-height:20px; float:left; padding-left:10px;">
						<img src="../Public/img/qq.gif" alt="教师问卷QQ咨询专线" title="教师问卷QQ咨询专线" />
					</div>
					<div style="height:20px; line-height:20px; float:left; padding-top:3px;">教师问卷QQ咨询专线</div>
				</a>
			</eq>
			<eq name="Think.cookie.user_type" value="c">
				<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2877907559&site=qq&menu=yes">
					<div style="height:20px; line-height:20px; float:left; padding-left:10px;">
						<img src="../Public/img/qq.gif" alt="校管问卷QQ咨询专线" title="校管问卷QQ咨询专线" />
					</div>
					<div style="height:20px; line-height:20px; float:left; padding-top:3px;">校管问卷QQ咨询专线</div>
				</a>
			</eq>
			<eq name="Think.cookie.user_type" value="d">
				<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2877907559&site=qq&menu=yes">
					<div style="height:20px; line-height:20px; float:left; padding-left:10px;">
						<img src="../Public/img/qq.gif" alt="县管问卷QQ咨询专线" title="县管问卷QQ咨询专线" />
					</div>
					<div style="height:20px; line-height:20px; float:left; padding-top:3px;">县管问卷QQ咨询专线</div>
				</a>
			</eq>
			<br /><br />
		</div>
	</div>
	<div class="right_bar"><img src="../Public/img/right_bar.jpg" /></div>
	<script>	
		$(function(){
			$('.right_bar').hide();
			$('#kefu').show();
			$('.right_bar').click(function(){
				$(this).hide();
				$('#kefu').show();
			});
			$('#kefu .close').click(function(){
				$('.right_bar').show();
				$('#kefu').hide();
			});
		});
	</script>
</block>